Previous page Next page

Text Elements

See Enabling Text Entry on page 81 and Text Editing Modes on page 83 for guidelines to enable text entry and facilitate text editing. See Access Key Input Mode (AIM) on page 123 for information about an alternate text entry method using access keys.

Attribute
Value
Description
Comments
align
left
right
center
Aligns the paragraph. Default is “left.”
SUPPORTED.
mode
wrap
nonwrap
Sets whether a paragraph wraps lines or not.
SUPPORTED.
style
property
Cascading Style Sheet Attribute.
SUPPORTED

If
align=left
align=center
align=right
mode=wrap (default)
Yes
No
No
mode=nowrap
Yes
Yes
Yes

When the mode has been set to “nowrap” then all wml tags embedded inside this <p> tag get the “nowrap” behavior. For example, if an image is embedded inside, the image is restricted to the line. The browser truncates a line on the horizontal boundary. Similarly, for any anchors and <a> tags embedded inside, the label is truncated to the line boundary and the link is restricted.

When the mode has been set to “wrap” then all elements inside the <p> tag receive the wrap behavior. Images inside will bleed vertically into the adjoining lines. <a> and <anchor> tags will also continue to the adjoining line if the labels are long.

For each tag except <img> the “mode” attribute will be set to “nowrap” if the “align” attribute is either “center” or “right”. For <img> tags the mode will not change.

Even though the “mode” attribute value might be changed, any embedded tag will inherit the original “mode” attribute value.

The alignment attribute is honored for all tags except for input tags.

The following tags are not supported but the content inside the tags is rendered as normal text:


Previous page Next page